﻿using System;
/*
 通用弹框！
 */
namespace TinyFrameWork
{
    public class UIMessageBoxWithIcon : UIMessageBox
    {

        public override void InitWindowOnAwake()
        {
            base.InitWindowOnAwake();
            this.windowID = WindowID.WindowID_UICommonMessageBox;
            UIEventListener.Get(btnClose).onClick = delegate
            {
                UIManager.GetInstance().CloseMessageBox(WindowID.WindowID_UICommonMessageBox);
            };
        }

        public override void InitWindowData()
        {
            base.InitWindowData();
        }

        public override void ResetWindow()
        {
            base.ResetWindow();
        }


        public override void SetCenterBtnCallBack(UIEventListener.VoidDelegate callBack)
        {
            base.SetCenterBtnCallBack(callBack);
        }

        public override void SetLeftBtnCallBack(UIEventListener.VoidDelegate callBack)
        {
            base.SetLeftBtnCallBack(callBack);
        }

        public override void SetRightBtnCallBack(UIEventListener.VoidDelegate callBack)
        {
            base.SetRightBtnCallBack(callBack);
        }

        public override void ShowWindow()
        {
            base.ShowWindow();
        }

        public override void HideWindow(Action onComplete)
        {
            base.HideWindow(onComplete);
        }

    }
}
